package com.ljw.applicationclient.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HiController implements ScheduleServiceHi {

    @Autowired
    ScheduleServiceHi scheduleServiceHi;

    @Override
    @GetMapping("/hi")
    public String sayHiFromClientOne(String name) {
        return scheduleServiceHi.sayHiFromClientOne(name);
    }

    @Override
    @GetMapping(value = "/hello")
    public String sayHelloFromClientOne(String name) {
        return scheduleServiceHi.sayHelloFromClientOne(name);
    }
}
